# a = 1
# print(str(a),type(str(a)))
#
# a = '1'
# print(int(a),type(int(a)))

# a = 'asd'
# print(int(a),type(int(a)))

# a = '20:50:23'
# print(int(a),type(int(a)))
# print(float(a),type(float(a)))

# list1 = [10, 20, 30, 40, 50, 20]
# s1 = {100, 200, 300, 400, 500}
# print(tuple(list1))
# print(tuple(s1))

"""扩展"""
# s1 = {2,3,1,4,5,6}
# s1 = {'bule','red','green'}
# print(s1.pop())  # 随机删除  (如果是数值类型 会删除最小的那个 如果是字符串类型的会随机删除)
# print(s1)

# t1 = ('a', 'b', 'c', 'd', 'e')
# s1 = {100, 200, 300, 400, 500}
# print(list(t1))
# print(list(s1))

# list1 = [10, 20, 30, 40, 50, 20]
# t1 = ('a', 'b', 'c', 'd', 'e','e')
# print(set(list1))  # 还能去重
# print(set(t1))

print(list('123456789'))  # 列表的创建
print(set('123456789'))  # 集合的创建
print(tuple('123456789'))  # 元组的创建
print(eval('1+2'))
a = 1.4
b = 1
print(float(b))
print(int(a))
print(type(a))
"""
列表 元组  集合 三者之间可以相互转换  
int可以转成字符串   
但是字符串不能之间转int   除了0123456789
"""